<script type="text/javascript">
var successFun=function(res){
if(res.code==200){
	alert('更新成功！');
	document.location.reload();
}else{
	alert('出错了！');
}
}
$(document).ready(function() { 
	var updateOptions	= {dataType:'json',error:doError,success:doSuccess}
    $('#form').ajaxForm(updateOptions); 
}); 
</script>
<div class="page-title">
	<div class="in">
    		<div class="titlebar"><h2>返利申请管理</h2><p></p></div>
            <div class="clear"></div>
    </div>
</div>
<div class="content">
	<div class="simplebox grid740">
	<div class="titleh">
    <h3>返利申请列表</h3>
    </div>
        <table class="tablesorter"> 
        	<thead> 
        		<tr> 
        			<th class="header">ID</th> 
        			<th class="header">用户名</th> 
        			<th class="header">金额</th>
        			<th class="header">支付宝账号</th> 
        			<th class="header">申请时间</th> 
        			<th class="header">审核时间</th> 
        			<th class="header">状态</th> 
        			<th class="header">操作</th> 
        		</tr> 
        	</thead> 
            
            <tbody> 
            	{loop $return['rows'] $item}
            	<tr> 
            		<td>{$item['id']}</td> 
            		<td>{htmlspecialchars($item['user']['username'])}</td> 
            		<td>{$item['money']}</td> 
            		<td>{$item['alipay_account']}</td> 
            		<td>{$item['created']}</td> 
            		<td>{$item['check_time']}</td> 
            		<td>{if $item['status']==0}未处理{/if}{if $item['status']==1}已返利{/if}</td> 
            		<td>{if $item['status']==0}<a href="javascript:checkReturn({$item['id']},1)">设置为已返利</a>{/if}</td> 
            	</tr> 
            	{/loop}
            </tbody> 
        </table>
		{$pages}
        <input type="hidden" id="hdHideUrl" value="{url('Return','Check')}" />
	</div>
</div>